package com.wry.wry_test.algorithm;

import java.util.Arrays;
import java.util.List;
import java.util.Optional;

public class Day02 {


    public static void main(String[] args) {
        List<Integer> integerList = Arrays.asList(1, 6, 3, 4, 5);
        Optional<Integer> num = integerList.stream().filter(i -> i > 3).findAny();
        System.out.println(num.orElse(0));

    }
}
